{include file="common/header.tpl"}
<section class="main">
	<nav class="left-col">{include file="common/navi-system.tpl"}</nav>
    <article class="right-col">
    	<h2><a href="{$smarty.const.HOST_BACKEND}seo/index">SEO</a> &raquo; Thêm mới</h2>
        <form name="frmAdd" id="frmAdd" method="post" enctype="multipart/form-data" action="{$smarty.const.HOST_BACKEND}seo/save" class="ui">
        	<ul>
                {if isset($smarty.session.serr)}
                    <li>
                        <span class="errorMessage">{$smarty.session.serr}</span>
                    </li>
                {/if}
                <li>
                    <label for="pcontroller">Controller <span class="required">*</span>:</label>
                    <div class="txt">
                    	<input type="text" class="text" name="pcontroller" id="pcontroller" value="{if isset($smarty.session.post.pcontroller)}{$smarty.session.post.pcontroller}{/if}" maxlength="50" />
                    </div>
                </li>
                <li>
                    <label for="paction">Action:</label>
                    <div class="txt">
                    	<input type="text" class="text" name="paction" id="paction" value="{if isset($smarty.session.post.paction)}{$smarty.session.post.paction}{/if}" maxlength="50" />
                    </div>
                </li>
                <li>
                    <label for="pname">Trang <span class="required">*</span>:</label>
                    <div class="txt">
                    	<input type="text" class="text" name="pname" id="pname" value="{if isset($smarty.session.post.pname)}{$smarty.session.post.pname}{/if}" maxlength="100" />
                    </div>
                </li>                            
                <li>
                    <label for="ptitle">Tiêu đề <span class="required">*</span>:</label>
                    <div class="txt">
                    	<input type="text" class="text" name="ptitle" id="ptitle" value="{if isset($smarty.session.post.ptitle)}{$smarty.session.post.ptitle}{/if}" maxlength="100" />
                    </div>
                </li>
                <li>
                    <label for="pkeywords">Từ khóa <span class="required">*</span>:</label>
                    <div class="txt">
                    	<input type="text" class="text" name="pkeywords" id="pkeywords" value="{if isset($smarty.session.post.pkeywords)}{$smarty.session.post.pkeywords}{/if}" maxlength="255" />
                    </div>
                </li>
                <li>
                    <label for="pdescription">Mô tả <span class="required">*</span>:</label>
                    <div class="area">
                    	<textarea rows="1" cols="1" name="pdescription" id="pdescription">{if isset($smarty.session.post.pdescription)}{$smarty.session.post.pdescription}{/if}</textarea>
                    </div>
                </li>
                <li>
                    <button type="submit"><strong>Lưu dữ liệu</strong></button>
                    <button type="reset"><strong>Nhập lại</strong></button>  
                </li>
          	</ul>
        </form>
    </article>
</section>
    
{include file="common/footer.tpl"}
                
